<?php if(!defined('IN_UCHOME')) exit('Access Denied'); ?><?php $_TPL['titles'] = array(getstr($pic['title'], 60, 0, 0, 0, 0, -1), $album['albumname'], '相册'); ?>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=<?=$_SC['charset']?>" />
<title><?php if($_TPL['titles']) { ?><?php if(is_array($_TPL['titles'])) { foreach($_TPL['titles'] as $value) { ?><?php if($value) { ?><?=$value?> - <?php } ?><?php } } ?><?php } ?><?php if($space) { ?><?=$space['username']?> - <?php } ?><?=$_SCONFIG['sitename']?> - Powered by UCenter Home</title>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<style type="text/css">
@import url(template/<?=$_SC['template']?>/common.css);
<?php if(!empty($space['theme'])) { ?>
@import url(theme/<?=$space['theme']?>/style.css);
<?php } ?>
<?php if(!empty($space['css'])) { ?>
<?=$space['css']?>
<?php } ?>
</style>
<?php if($space['uid']) { ?>
<link rel="alternate" type="application/rss+xml" href="rss.php?uid=<?=$space['uid']?>" title="<?=$space['username']?>" />
<?php } ?>
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=1" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="wrap">
<div id="header">
<h2><a href="index.php"><img src="<?=$_SCONFIG['sitelogo']?>" alt="<?=$_SCONFIG['sitename']?>" /></a></h2>
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="menu">
<li><a href="space.php?do=home">首页</a><?php if($space['self'] && $space['credit']<10) { ?><a href="space.php?do=home&view=guide" class="edit">向导</a><?php } ?></li>
<li><a href="space.php">个人主页</a></li>
<li><a href="space.php?do=friend">好友</a><a href="javascript:;" onclick="openSub(this,'friend');" class="drop">&nbsp;</a></li>
<li><a href="network.php">随便看看</a><?php if(empty($_SCONFIG['showall'])) { ?><a href="space.php?do=home&view=all" class="edit">近况</a><?php } ?></li>
<li><a href="space.php?do=pm"><span id="span_newpm">私信</span><?php if(!empty($_SGLOBAL['member']['newpm'])) { ?><script>newpm();</script><?php } ?></a><a href="javascript:;" onclick="openSub(this,'pm');" class="drop">&nbsp;</a></li>
</ul>
<div id="op">
<a href="cp.php">设置</a><span class="pipe">|</span>
<a href="cp.php?ac=privacy">策略</a><span class="pipe">|</span>
<?php if($space['self'] && $space['credit']>=10) { ?><a href="space.php?do=home&view=guide">向导</a><span class="pipe">|</span><?php } ?>
<a href="cp.php?ac=common&op=logout">退出</a>
</div>
<?php } else { ?>
<div id="op">
<a href="index.php">首页</a><span class="pipe">|</span>
<a href="space.php">我的空间</a><span class="pipe">|</span>
<a href="help.php">帮助</a>
</div>
<?php } ?>
</div>
<div id="submenu">
<div id="subfriend" class="submenu">
<ul>
<li><a href="space.php?do=friend">好友列表</a></li>
<li><a href="space.php?do=friend&view=visitor">我的访客</a></li>
<li><a href="space.php?do=friend&view=trace">我的足迹</a></li>
<li><a href="space.php?do=friend&view=online">在线用户</a></li>
<li class="line"><a href="cp.php?ac=friend&op=find">寻找好友</a></li>
<li><a href="cp.php?ac=invite">邀请好友</a></li>
</ul>
</div>
<div id="subpm" class="submenu">
<ul>
<li><a href="space.php?do=pm">查看未读</a></li>
<li><a href="space.php?do=pm&view=inbox">收件箱</a></li>
<li><a href="space.php?do=pm&view=outbox">发件箱</a></li>
<li><a href="space.php?do=notice">通知</a></li>
<li class="line"><a href="cp.php?ac=pm">发送私信</a></li>
</ul>
</div>
</div>
<div id="content" class="s_clear">
<div id="side">
<?php if($_SGLOBAL['supe_uid']) { ?>
<ul id="app" class="app_list">
<li class="app-doing"><a href="space.php?do=doing">迷你博客</a></li>
<li class="app-blog"><a href="space.php?do=blog">日志</a><em><a href="cp.php?ac=blog">发表</a></em></li>
<li class="app-photo"><a href="space.php?do=album">相册</a><em><a href="cp.php?ac=upload">上传</a></em></li>
<li class="app-mtag"><a href="space.php?do=thread">话题</a><em><a href="cp.php?ac=thread">发起</a></em></li>
<li class="app-share"><a href="space.php?do=share">分享</a></li>

<?php if(is_array($_SGLOBAL['app'])) { foreach($_SGLOBAL['app'] as $key => $value) { ?>
<?php if($key != UC_APPID && $value['open']) { ?>
<li class="app-<?=$value['type']?>"><a href="space.php?do=app&appid=<?=$key?>" title="<?=$value['name']?>"><?=$value['name']?></a></li>
<?php } ?>
<?php } } ?>
</ul>
<?php } else { ?>
<?php if(empty($space['theme']) && empty($space['css'])) { ?>
<?php if(empty($_SGLOBAL['nologinform'])) { ?>
<form id="loginform" name="loginform" action="do.php?ac=login&ref" method="post">
<div style="padding: 10px;">
<p class="gray"><label for="username">用户名：</label></p>
<p><input type="text" name="username" id="username" class="t_input" value="<?=$membername?>" size="15" style="width: 100px;" /></p>
<p class="gray"><label for="password">密　码：</label></p>
<p><input type="password" name="password" id="password" class="t_input" size="15" style="width: 100px;" /></p>
<p><input type="checkbox" id="cookietime" name="cookietime" value="315360000" checked /> <label for="cookietime">下次自动登录</label></p>
<p style="padding-top: 4px;">
<input type="hidden" name="refer" value="space.php?do=home" />
<input type="submit" id="loginsubmit" name="loginsubmit" value="登录" class="submit" style="padding: 0; width: 50px;" />
<a href="do.php?ac=lostpasswd">找回密码</a>
</p>
</div>
</form>
<?php } ?>
<ul class="sidelink">
<li><a href="do.php?ac=register"><strong>注册</strong>期待您的入住</a></li>
<li><a href="help.php"><strong>页面介绍</strong>了解一下您的家</a></li>
<?php if($_SCONFIG['networkpublic']) { ?><li><a href="network.php"><strong>随便看看</strong>看看大家在做什么</a></li><?php } ?>
</ul>
<?php } ?>
<?php } ?>

<?php if(empty($space['theme']) && empty($space['css'])) { ?>
<?php adshow('leftside'); ?><!-- 左侧栏广告-->
<?php } ?>
</div>
<div id="mainarea">
<?php } else { ?>
<?php obclean();
	@header("Expires: -1");
	@header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
	@header("Pragma: no-cache");
	@header("Content-type: application/xml; charset=$_SC[charset]");
	echo '<'."?xml version=\"1.0\" encoding=\"$_SC[charset]\"?>\n";
	echo "<root><![CDATA["; ?>
<?php } ?>

<div class="c_header a_header">
<a href="space.php?uid=<?=$space['uid']?>"><img src="<?php echo avatar($space[uid],small); ?>" alt="<?=$space['username']?>" class="avatar" /></a>
<h1>相册<em> &nbsp;- <?=$album['albumname']?></em></h1>
<a href="space.php?uid=<?=$space['uid']?>" class="spacelink"><?php if($space['self']) { ?>我<?php } else { ?><?=$space['username']?><?php } ?>的空间</a>
</div>

<div class="h_status">
<div class="r_option"><a href="space.php?uid=<?=$pic['uid']?>&do=album&picid=<?=$pic['picid']?>&goto=up">上一张</a><span class="pipe">|</span><a href="space.php?uid=<?=$pic['uid']?>&do=album&picid=<?=$pic['picid']?>&goto=down" id="nextlink">下一张</a><span class="pipe">|</span><?php if($_GET['play']) { ?><a href="javascript:;" id="playid" onclick="playNextPic(false);">停止播放</a><?php } else { ?><a href="javascript:;" id="playid" onclick="playNextPic(true);">幻灯播放</a><?php } ?><span id="displayNum"></span></div>
<?php if($album['picnum']) { ?>当前第 <?=$sequence?> 张<span class="pipe">|</span>共 <?=$album['picnum']?> 张图片<span class="pipe">|</span><?php } ?>
<a href="space.php?uid=<?=$pic['uid']?>&do=<?=$do?>&id=<?=$pic['albumid']?>">返回相册</a>
<?php if($album['friend']) { ?>
<span class="locked gray">
<?php if($album['friend'] == 1) { ?>仅好友可见<?php } ?>
<?php if($album['friend'] == 2) { ?>指定好友可见<?php } ?>
<?php if($album['friend'] == 3) { ?>仅自己可见<?php } ?>
<?php if($album['friend'] == 4) { ?>凭密码可见<?php } ?>
</span>
<?php } ?>
</div>

<div class="d_content">
<div class="photobox">
<a href="space.php?uid=<?=$pic['uid']?>&do=album&picid=<?=$pic['picid']?>&goto=down"><img src="<?=$pic['pic']?>" alt="<?=$pic['title']?>" /></a>
</div>

<table cellspacing="0" cellpadding="0" class="infotable photo_info">
<tr><td><?=$pic['title']?></td></tr>
<tr><th>上传于 <?php echo sgmdate('Y-m-d H:i',$pic[dateline]); ?> (<?=$pic['size']?>)</th></tr>
</table>

<?php if(isset($_GET['exif'])) { ?>
<table cellspacing="0" cellpadding="0" class="infotable photo_info">
<?php if($exifs) { ?>
<?php if(is_array($exifs)) { foreach($exifs as $key => $value) { ?>
<?php if($value) { ?><tr><th><?=$key?> &nbsp;</th><td><?=$value?></td></tr><?php } ?>
<?php } } ?>
<?php } else { ?>
<tr><td>无EXIF信息</td></tr>
<?php } ?>
</table>
<?php } ?>

<br />
</div>

<div class="l_content s_clear">
<div class="wide">

<div class="post_list a_list" id="comment">
<?php if($cid) { ?>
<div class="notice">
当前只显示与你操作相关的单个评论，<a href="space.php?uid=<?=$pic['uid']?>&do=album&picid=<?=$pic['picid']?>#comment">点击此处查看全部评论</a>
</div>
<?php } ?>

<ul id="comment_ul">
<?php if(is_array($list)) { foreach($list as $value) { ?>
<?php if(empty($ajax_edit)) { ?><li id="comment_<?=$value['cid']?>_li"><?php } ?>
<a href="space.php?uid=<?=$value['authorid']?>"><img src="<?php echo avatar($value[authorid],small); ?>" alt="<?=$value['author']?>" class="avatar" /></a>
<div class="title">
<div class="r_option">
<?php if($value['authorid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=comment&op=edit&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_edit" onclick="ajaxmenu(event, this.id, 99999, '', -1)">编辑</a>
<?php } ?>
<?php if($value['authorid']==$_SGLOBAL['supe_uid'] || $value['uid']==$_SGLOBAL['supe_uid']) { ?>
<a href="cp.php?ac=comment&op=delete&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_delete" onclick="ajaxmenu(event, this.id, 99999)">删除</a>
<?php } ?>
<?php if($value['authorid']!=$_SGLOBAL['supe_uid'] && ($value['idtype'] != 'uid' || $space['self'])) { ?>
<a href="cp.php?ac=comment&op=reply&cid=<?=$value['cid']?>" id="c_<?=$value['cid']?>_reply" onclick="ajaxmenu(event, this.id, 99999, '', -1)">回复</a>
<?php } ?>
</div>
<a href="space.php?uid=<?=$value['authorid']?>" id="author_<?=$value['cid']?>"><?=$value['author']?></a> <span class="time"><?php echo sgmdate('Y-m-d H:i',$value[dateline],1); ?></span>
</div>
<div class="detail" id="comment_<?=$value['cid']?>"><?=$value['message']?></div>
<?php if(empty($ajax_edit)) { ?></li><?php } ?>
<?php } } ?>
</ul>
</div>
<div class="page"><?=$multi['html']?></div>

<form id="commentform" name="commentform" action="cp.php?ac=comment" method="post" class="quickpost" style="padding-bottom: 1em;">
<h3>评论</h3>
<table cellpadding="0" cellspacing="0">
<tr>
<td><textarea id="comment_message" onkeydown="ctrlEnter(event, 'commentsubmit_btn');" name="message" rows="5" cols="60" style="width: 380px;"></textarea></td>
</tr>
<tr>
<td>
<input type="hidden" name="refer" value="space.php?uid=<?=$pic['uid']?>&do=<?=$do?>&picid=<?=$pic['picid']?>" />
<input type="hidden" name="id" value="<?=$picid?>">
<input type="hidden" name="idtype" value="picid">
<input type="hidden" name="commentsubmit" value="true">
<input type="button" id="commentsubmit_btn" name="commentsubmit_btn" class="submit" value="评论" onclick="ajaxpost('commentform', 'comment_status', 'comment_add')" />
<span id="comment_status"></span>
</td>
</tr>
</table>
</form>
</div>
<div class="narrow">
<div class="box">

<ul class="line_list blocklink">
<li><a href="<?=$pic['pic']?>" target="_blank">新窗口查看原图</a></li>
<?php if(!isset($_GET['exif'])) { ?>
<li><a href="space.php?uid=<?=$pic['uid']?>&do=<?=$do?>&picid=<?=$pic['picid']?>&exif">显示图片EXIF信息</a></li>
<?php } ?>
<?php if($pic['uid']==$_SGLOBAL['supe_uid']) { ?>
<li><a href="cp.php?ac=album&op=editpic&albumid=<?=$pic['albumid']?>&picid=<?=$pic['picid']?>">编辑图片</a></li>
<?php } ?>		
</ul>

</div>
</div>
<?php if(empty($album['friend'])) { ?>
</div>
<div class="f_status s_clear">
<a href="javascript:;" onclick="window.scrollTo(0,0);" id="a_top" title="TOP">TOP</a>
<a href="cp.php?ac=share&type=pic&id=<?=$pic['picid']?>" id="a_share" onclick="ajaxmenu(event, this.id, 99999,'' , -1)">分享</a>
<?php } ?>
</div>
<script type="text/javascript">
<!--
var interval = 5000;
var timerId = -1;
var derId = -1;
var replay = false;
var num = 0;
var endPlay = false;
function forward() {
window.location.href = 'space.php?uid=<?=$pic['uid']?>&do=album&picid=<?=$pic['picid']?>&goto=down&play=1';
}
function derivativeNum() {
num++;
$('displayNum').innerHTML = '[' + (interval/1000 - num) + ']';
}
function playNextPic(stat) {
if(stat || replay) {
derId = window.setInterval('derivativeNum();', 1000);
$('displayNum').innerHTML = '[' + (interval/1000 - num) + ']';
$('playid').innerHTML = '停止播放';
timerId = window.setInterval('forward();', interval);
} else {
replay = true;
num = 0;
if(endPlay) {
$('playid').innerHTML = '重新播放';
} else {
$('playid').innerHTML = '幻灯播放';
}
$('displayNum').innerHTML = '';
window.clearInterval(timerId);
window.clearInterval(derId);
}
}
<?php if($_GET['play']) { ?>
<?php if($sequence && $album['picnum']) { ?>
if(<?=$sequence?> == <?=$album['picnum']?>) {
endPlay = true;
playNextPic(false);
} else {
playNextPic(true);
}
<?php } else { ?>
playNextPic(true);
<?php } ?>
<?php } ?>
//-->
</script>
<?php if(empty($_SGLOBAL['inajax'])) { ?>
</div>
</div>

<div id="footer">
<p class="copyright" title="<?php echo debuginfo(); ?>">
<?=$_SCONFIG['sitename']?> &nbsp; <a href="mailto:<?=$_SCONFIG['adminemail']?>">联系我们</a>
<?php if($_SCONFIG['miibeian']) { ?> &nbsp;<a  href="http://www.miibeian.gov.cn" target="_blank"><?=$_SCONFIG['miibeian']?></a><?php } ?>
 &nbsp; Powered by <a  href="http://u.discuz.net" target="_blank">UCenter Home</a> <span title="<?php echo X_RELEASE; ?>"><?php echo X_VER; ?></span>
 <?php if(!empty($_SCONFIG['licensed'])) { ?><a  href="http://license.comsenz.com/?pid=7&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><?php } ?>
 &copy; 2001-2008 <a  href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a>
</p>
</div>
</div>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<?php adshow('footer'); ?><!-- 页脚广告-->

<?php if($_SGLOBAL['supe_uid']) { ?>
<?php if(!isset($_SCOOKIE['checkpm'])) { ?>
<script type="text/javascript" src="cp.php?ac=pm&op=checknewpm&rand=<?php echo rand(0,999) ?>"></script>
<?php } ?>
<?php if(!isset($_SCOOKIE['synfriend'])) { ?>
<script type="text/javascript" src="cp.php?ac=friend&op=syn&rand=<?php echo rand(0,999) ?>"></script>
<?php } ?>
<?php } ?>
</body>
</html>
<?php } ?>
<?php ob_out(); ?><?php subtplcheck('template/default/space_album_pic|template/default/header|template/default/space_comment_li|template/default/footer', '1228650848', 'template/default/space_album_pic'); ?>